import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

import {
  CameraDto,
  CameraQueryConditionDto
} from './model/cameraModel'

enum Api {
  Query = '/ehs/camera/query',  // 查询
}


/**
 * 
 * @param param 查询
 * @param mode 
 * @returns 
 */
export function queryCameras(param: CameraQueryConditionDto, mode: ErrorMessageMode = 'modal') {
  return defHttp.post<CameraDto[]>(
    {
      url: Api.Query,
      params: param
    }, {
    errorMessageMode: 'modal',
  }
  );
}